"""
Thread(target=函数名,args=(元组))
Thread(target=函数名,kwargs={字典})
"""
import threading
def fun(name,num):
    for i in range(num):
        print(f"{name}说:你好!({i+1}/{num})")
if __name__ == '__main__':
    t1 = threading.Thread(target=fun,args=("小名",3))
    t2 = threading.Thread(target=fun,kwargs={"name":'张三',"num":2})
    t1.start()
    t2.start()
    t1.join()
    t2.join()